import {Pipe, PipeTransform} from "@angular/core";

@Pipe({name: 'numberToBoolean'})
export class NumberToBooleanPipe implements PipeTransform {

    transform(value: any, trueNumber: number = 1): boolean {
        return value === trueNumber;
    }
}
